(function($){
    $(function() {
        var slider = $('#js-slide').tabs({
            timeDelay: 3,
            effect: 'scroll',
            scrollType: 'loop',
            direction: 'up',
            speed: 'normal'
        });
        
        var tab = $('#tab').tabs({
            isAutoPlay:false,
            boxSelector:'li',
            effect:'scroll',
            scrollType:'loop',
            perItem: 4
        });
        
        $('#pre').bind('click', function(e){
            e.preventDefault();
            tab.tabs('prev');
        });
        $('#next').bind('click', function(e){
            e.preventDefault();
            tab.tabs('next');
        });
    });
})(jQuery);